package album

import (
	v1 "babyplan/api/v1"
	"babyplan/middleware"
	"cftgo/cftf/boot/app"
)

type AlbumRouter struct{}

func (this *AlbumRouter) InitRouter() {
	api := v1.ApiGroupApp.AlbumApiGroup
	app.GetGinEngine().GET("api/v1/babyplant/albums", middleware.JwtAuth, api.Album.Search)
	app.GetGinEngine().POST("api/v1/babyplant/albums", middleware.JwtAuth, api.Album.Create)
}
